package main

import (
	_ "blog/routers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/logs"
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

func main() {
	//orm.Debug = true
	orm.RegisterDataBase("default", "mysql", "root:@/blog?charset=utf8")
	logs.SetLogger("file", `{"filename":"logs/test.log"}`)
	logs.Async(1e3)
	logs.SetLogFuncCall(true)
	beego.Run()
}
